package cn.szabadsag.user.service;

import cn.szabadsag.base.exception.BusinessException;
import cn.szabadsag.base.service.IBaseService;
import cn.szabadsag.user.domain.User;
import cn.szabadsag.user.domain.dto.UserDto;

/**
 * 用户业务层接口
 *
 * @author yangcong
 * @date 2022年03月10日 19:22
 * @since v1.0
 */
public interface IUserService extends IBaseService<User> {

    //  根据手机号查询对象
    User loadByPhone(String phone);

    void register(UserDto userDto) throws BusinessException;
}
